import request from '@/utils/request'

// 获取首页数据
export function getInfo(query) {
  return request({
    url: '/homePage/homePage/index',
    method: 'get',
    params: query
  })
}

// 企业数量
export function numberOfEnterprise(query) {
  return request({
    url: '/homePage/homePage/numberOfEnterprise',
    method: 'get',
    params: query
  })
}

// 委托数量
export function numberOfCommission(query) {
  return request({
    url: '/homePage/homePage/numberOfCommission',
    method: 'get',
    params: query
  })
}

// 统计工程数量
export function numberOfEngineering(query) {
  return request({
    url: '/homePage/homePage/numberOfEngineering',
    method: 'get',
    params: query
  })
}
